<?php
error_reporting(0);
$isadmin=1;
include_once '../comm/config.php';
include '../comm/checkpostandget.php';
include 'check.php';
$title=$_POST['title']; 
$url=$_POST['url']; 
$wz=$_POST['wz'];
$hide=$_POST['hide'];  
$pic=$_POST['picname']; 
$sj= date("Y-m-d H:i:s");  

$link = mysql_connect($dbserver, $dbuser, $dbpass);
if (!$link) {
     die(ERR_DB);
}
mysql_select_db($dbname);

mysql_query("set names utf8");

$q = "insert into ".$BIAOTOU."slides (title,url,wz,addtime,pic,hide) values('".$title."','".$url."','".$wz."','".$sj."','".$pic."','".$hide."')";
mysql_query($q);

header('Location: slides_list.php');     

mysql_close($link);

?>
